	package Drivers;

	import java.net.MalformedURLException;
	import java.net.URL;
	import javax.xml.namespace.QName;
	import javax.xml.ws.Service;
import javax.xml.namespace.QName;

import net.webservicex.stockcurrencyconvert.StockPriceConvert;
import net.webservicex.stockcurrencyconvert.StockPriceConvertImp;




public class Webservice_client {
	public static void main(String args[]) throws MalformedURLException{
		URL url = new URL(String.format("http://localhost:8085/ts?wsdl", 8085));
		
		QName qname = new QName("http://stockcurrencyconvert.webservicex.net/","StockPriceConvertImpService");
		 Service service = Service.create(url, qname);
		 StockPriceConvert eif = service.getPort(StockPriceConvert.class);
		 System.out.println(eif.convertStockChange("AAPL", "EUR"));
		
	}
}
